package br.edu.ufcg.lsd.wbis.control.equipment;

import java.sql.Date;

import javax.persistence.Entity;

/**
 * 
 * @author Paulo Ricardo
 *
 */
@Entity
public class Display extends Component {

	private boolean datashow;
	private String displayType;
	private String resolution;
	
	@SuppressWarnings("unused")
	private Display() {}

	/**
	 * 
	 * @param inventoryCode
	 * @param brand
	 * @param serialCode
	 * @param aquisitionDate
	 * @param model
	 * @param localization
	 * @param receipt
	 * @param reserve
	 * @param available
	 * @param coupled
	 * @param datashow
	 * @param displayType
	 * @param resolution
	 */
	public Display(String inventoryCode, String brand, String serialCode,
			Date aquisitionDate, String model, String localization,
			byte[] receipt, Computer computer, boolean available, 
			boolean datashow, String displayType, String resolution) {
		super(inventoryCode, brand, serialCode, aquisitionDate, model,
				localization, receipt, null, false, available, Display.class);
		this.datashow = datashow;
		this.displayType = displayType;
		this.resolution = resolution;
		if(!datashow)
			setComputer(computer);
	}

	/**
	 * 
	 * @return
	 */
	public boolean isDatashow() {
		return datashow;
	}

	/**
	 * 
	 * @return
	 */
	public String getDisplayType() {
		return displayType;
	}

	/**
	 * 
	 * @return
	 */
	public String getResolution() {
		return resolution;
	}

	/**
	 * 
	 * @param datashow
	 */
	protected void setDatashow(boolean datashow) {
		this.datashow = datashow;
	}

	/**
	 * 
	 * @param type
	 */
	protected void setDisplayType(String type) {
		this.displayType = type;
	}

	/**
	 * 
	 * @param resolution
	 */
	protected void setResolution(String resolution) {
		this.resolution = resolution;
	}



}
